/*
 * SuperRecord.h
 *
 *  Created on: Nov 12, 2011
 *      Author: zhouzhao
 */

#ifndef SUPERRECORD_H_
#define SUPERRECORD_H_
#include <string>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
using namespace std;

class SuperRecord {

private:
	string username;
	string ipaddr;
	string port;
	int sockfd;
	struct addrinfo info;

public:
	SuperRecord();
	virtual ~SuperRecord();

	void setUsername(string username);
	string getUsername(void);

	void setIPAddr(string ipaddr);
	string getIPAddr(void);

	void setPort(string port);
	string getPort(void);

	void setSockfd(int sockfd);
	int getSockfd(void);

	void setAddrInfo(struct addrinfo* p);
	addrinfo* getAddrInfo(void);
};

#endif /* SUPERRECORD_H_ */

